﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Luna小店.UC.工序管理.service;
using DevExpress.XtraGrid.Demos.util;
using Luna小店.UC.工序管理.工序详情;

namespace Luna小店.UC.工序管理
{
    public partial class Form工序 : DevExpress.XtraEditors.XtraForm
    {
        private DTO工序管理 DTO工序管理 = new DTO工序管理();
        private List<wbsItemDTO> wbsItemDTOs = new List<wbsItemDTO>();
        private wbsItemDTO wbsItemDTO = new wbsItemDTO();
        public Form工序()
        {
            InitializeComponent();
            this.wbsItemDTOs = 工序Service.get全部工序("SSHIRT");
            this.gridControl工序.DataSource = this.wbsItemDTOs;
        }

        private void tileView工序_Click(object sender, EventArgs e)
        {
            String code = FunctionHelper.getTileView(
                this.tileView工序,
                this.tileView工序.FocusedRowHandle,
                "code"
                );
            this.wbsItemDTO = 工序Service.get点击单个工序(code);
            if ("10".Equals(this.wbsItemDTO.id))
            {
                new Form投料详情(code).ShowDialog();
            }
        }
    }
}